<% version_issues.each do |issue| %>
  <div class="issue-card hascontextmenu" data-id="<%= issue.id %>">
    <% if issue.estimated_hours %>
      <span class="hours"><%= "(#{"%.2f" % issue.estimated_hours.to_f}h)" %></span>
    <% end %>
    <%= check_box_tag("ids[]", issue.id, false, :id => nil, :class => 'checkbox') %>
    <%= link_to_issue(issue, :project => (@project != issue.project)) %>
  </div>
<% end %>

<% if version_issues.any? && version_issues.first.fixed_version_id.blank? %>
  <div class="pagination-wrapper">
  <p class="pagination">
      <% pagination_links_full(@issue_pages, @issue_count, :per_page_links => false)  do |text, parameters, options| %>
        <%= link_to text, autocomplete_agile_versions_path(parameters.merge(:q => params[:q], :project_id => @project)), :remote => true %>
      <% end %>
  </p>
  </div>
<% end %>
